package com.base.service.system.ao;

import java.io.Serializable;

import com.gitee.magic.core.valid.annotation.Length;
import com.gitee.magic.core.valid.annotation.NotNull;
import com.gitee.magic.core.valid.annotation.number.IntegerValid;
import com.gitee.magic.core.valid.annotation.number.LongValid;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author start
 */
@Getter@Setter@ToString
public class AuthAO implements Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Schema(description="authId")
    @LongValid
    private Long id;

	@Schema(description="接口名称")
	@NotNull
	@Length
	private String name;
	
	@Schema(description="父ID")
	@NotNull
	@LongValid
	private Long parentId;

	@Schema(description="操作码")
	@NotNull
	@Length
	private String action;

	@Schema(description="接口地址")
	@NotNull
	@Length
	private String uri;

	@Schema(description="请求方法")
	@NotNull
	@Length
	private String method;

	@Schema(description="授权值")
	@NotNull
	@IntegerValid
	private Integer value;
	
	@Schema(description="排序值")
	@NotNull
	@IntegerValid
	private Integer sort;

}
